import { defineStore } from 'pinia'
import api from "../api";


export const useTaskStore = defineStore('task', () => {

    const taskQueue = ref([])

    function addTaskQueue (task){
        taskQueue.value.push(task)
        EXTask()
    }

    function removeTaskQueue (){
        taskQueue.value.shift()
    }

    function EXTask () {
        // 当任务进行时，跳过




    return {taskQueue,removeTaskQueue,EXTask,addTaskQueue }}})